using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;


namespace LenninSoftware.FormEditor
{
    public class ItemEditor: IEditForm
    {

        public ItemEditor(SPListItem item, SPWeb web, SPList list, SPControlMode controlMode)
        {
            _item = item;

            _web = web;

            _list = list;

            _controlMode = controlMode;
        }

        private SPListItem _item;

        public SPListItem Item
        {
            get
            {
                return _item;
            }
        }

        private SPWeb _web;

        public SPWeb Web
        {
            get
            {
                return _web;
            }
        }

        private SPList _list;

        public SPList List
        {
            get
            {
                return _list;
            }
        }

        private SPControlMode _controlMode;

        public SPControlMode ControlMode
        {
            get
            {
                return _controlMode;
            }
        }
    }
}
